<?php
$GLOBALS['Md'] = "FTK9D4D0";
$GLOBALS['Pd'] = "G";
require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
require_once($GLOBALS['PAD']."Aplications/ReportModels/report.vars.php");

	form_pr('PRT_Results','','','post');
	echo '<div class="title">Quadro de Promocoes</div>
	<table width="100%"  border="0" align="center" cellpadding="3" cellspacing="1">
  <tr bgcolor="#D6DADC">
	<td>';
	mn_field('date','ED','Tini',date("Y-m-01"),'PRT_Results',10,'','').' e ';
	mn_field('date','ED','Tend',date("Y-m-d"),'PRT_Results',10,'','');
	mn_field('button','ED','RPT_View','Por periodo','','','','" onclick="
		document.PRT_Results.action=\''.$GLOBALS['URL'].'Aplications/ReportModels/finantial_prom.php\';
		subform(\'PRT_Results\',\'RPT_FinResults\');');
		echo '</td><td>';
	$FieldCountries = "Brasil;Paises de Leste#305,301,300;307";
	mn_field('hselect','ED','Countries','',$FieldCountries,'Todos','false','');
	$FieldOrigens = "Lojas;Origens#1;2";
	mn_field('hselect','ED','Origens','',$FieldOrigens,'','','');
	echo '</td>
 </tr>
 </table>'; 
	echo '<div id="RPT_FinResults">';
	include($GLOBALS['PAD']."Aplications/ReportModels/finantial_prom.php");
	echo '</div>
	</form>'; ?>